﻿<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="进出口运单" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-5 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addData()"
                        ng-disabled="!btnPermission.handoverBillJCKAdd" translate
                        translate-attr-title="{{!btnPermission.handoverBillJCKAdd?'无权限执行此操作':''}}">新增</button>
                    <button class="btn btn-operate m-r-sm" ng-click="addThreeDayPlay('batch')"
                        ng-disabled="!btnPermission.handoverBillJCKThreeDayPlan" translate
                        translate-attr-title="{{!btnPermission.handoverBillJCKThreeDayPlan?'无权限执行此操作':''}}">三日计划</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchPrint()" translate>批量打印</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchSendConfirm()" translate>批量确认发货</button>

                    <button class="btn btn-operate m-r-sm" ng-click="addDataAuto()" translate>自动新增</button>
                    
                    <button class="btn btn-operate m-r-sm" ng-click="batchPrintJckBoxup()" translate>批量打印进出口装箱清单</button>
                </div>
                <div class="search-bar wrapper-none col-xs-7">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" translate
                            translate-attr-title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" translate translate-attr-title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.handoverBillJCKExport">
                            <div translate translate-attr-title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam" download-key="billIds">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出</span>
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition"
                                    download-duration="3" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出全部</span>
                                </li>
                                <li yb-download download-url="exportParam.allNewUrl" download-param="condition"
                                    check-callback="outPut()">
                                    <i class="yb-icon ico-export-o"></i> <span translate>按类型导出</span>
                                </li>
                                <li yb-download download-url="exportParam.exportBoxUp"
                                    download-param="exportParam.sectionParam" download-key="billIds">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出装箱清单</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')"
                        translate-attr-title="高级搜索" translate="高级搜索more"></button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" translate
                            translate-attr-placeholder="单号或发货通知单号" ng-model="condition.billNo">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)" translate>搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)"
                reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>进出口单号</span>：</label>
                        <textarea ng-model="condition.billNos" class="form-control" translate
                            translate-attr-placeholder="逗号分隔或者换行分隔"></textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>采购合同单号</span>：</label>
                        <input type="text" name="purchaseContractNo" ng-model="condition.purchaseContractNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>源运单号</span>：</label>
                        <input type="text" name="sourceDeliveryNo" ng-model="condition.sourceDeliveryNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>装箱单号</span>：</label>
                        <input type="text" name="boxupNo" ng-model="condition.boxupNo" class="form-control">
                    </div>                    
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>国家和地区</span>：</label>
                        <input type="text" name="country" ng-model="condition.country" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>创建人</span>：</label>
                        <input type="text" name="createName" ng-model="condition.createName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>运输方式</span>：</label>
                        <input type="text" name="shippingMethod" ng-model="condition.shippingMethod"
                            class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>物流状态</span>：</label>
                        <select class="form-control" ng-model="condition.deliveryStatus"
                            ng-options="item.code as item.name for item in deliveryStatues">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>出库状态</span>：</label>
                        <select class="form-control" ng-model="condition.outStatus">
                            <option value="" translate>请选择</option>
                            <option value=0>未出库</option>
                            <option value=1>部分出库</option>
                            <option value=2>已出库</option>
                        </select>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>制单时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)"
                            is-open="datePickerFlag[0]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)"
                            is-open="datePickerFlag[1]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>销售人员</span>：</label>
                        <input type="text" name="saleName" ng-model="condition.saleName" class="form-control">
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>确认发运时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.commitTimeStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="commitTimeStartShow=!commitTimeStartShow"
                            is-open="commitTimeStartShow" close-text="关闭"
                            ng-change="checkDate(condition, 'commitTimeStart', 'commitTimeEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.commitTimeEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="commitTimeEndShow=!commitTimeEndShow"
                            is-open="commitTimeEndShow" close-text="关闭"
                            ng-change="checkDate(condition, 'commitTimeStart', 'commitTimeEnd')" modal-size="small"
                            readonly>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center border-l-none th-check">
                                        <div yb-check-box yb-checked="markInfo.allChecked" yb-click="selectForAll()">
                                        </div>
                                    </th>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed && itemCol.type !== 'operate'">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth"
                                            fixed-width="tbStyle.scrollLeft"></div>
                                    </th>
                                    <th width="640" class="border-r-none" translate>
                                        操作
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}"
                                    ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item)">
                                        </div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <div class="font-0">
                                            <button class="btn btn-operate m-r-xs" ng-click="editData(item)"
                                                ng-disabled="!btnPermission.handoverBillJCKEdit || item.deliveryStatus >= 1 || curOrgId != item.orgId"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillJCKEdit?'无权限执行此操作':''}}">编辑</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="delApply(item)"
                                                ng-disabled="item.deliveryStatus >= 1 || !btnPermission.handoverBillJCKRemove"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillJCKRemove?'无权限执行此操作':''}}">删除</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="makeAbnormal(item.id, item.billNo, item.orgId)"
                                                ng-disabled="item.deliveryStatus =='0' || item.sendStatus == 2 || !btnPermission.handoverBillJCKAbnormalIn"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillJCKAbnormalIn?'无权限执行此操作':''}}">创建入库单</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="syncPackInfo( item.billNo, item.id )"
                                                ng-disabled="!btnPermission.handoverBillJCKSyncPackInfo"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillJCKSyncPackInfo?'无权限执行此操作':''}}">同步装箱信息</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="syncDelivery4NS(item.id )"
                                                ng-disabled="!btnPermission.handoverBillJCKSyncPackInfo || item.syncNsStatus =='1'"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillJCKSyncPackInfo?'无权限执行此操作':''}}">同步发货明细</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="sendConfirm(item.billNo)"
                                                ng-disabled="!btnPermission.handoverBillJCKSend || (item.deliveryStatus>=1&&item.deliveryStatus!=4)"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillJCKSend?'无权限执行此操作':''}}">确认发货</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="delivery(item)"
                                                ng-disabled="item.deliveryStatus!== '1' || !btnPermission.handoverBillJCKReceive"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillJCKReceive?'无权限执行此操作':''}}">收货</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="printBill(item)"
                                                ng-disabled="!btnPermission.handoverBillJCKPrint" translate
                                                translate-attr-title="{{!btnPermission.handoverBillJCKPrint?'无权限执行此操作':''}}">打印</button>
                                            
                                            <button class="btn btn-operate m-r-xs" ng-click="printEncasement(item)" translate>打印装箱清单</button>

                                            <button class="btn btn-operate m-r-xs" ng-click="printEncasementJck(item)"
                                                ng-disabled="!btnPermission.handoverBillJCKEncasementJck" translate
                                                translate-attr-title="{{!btnPermission.handoverBillJCKEncasementJck?'无权限执行此操作':''}}">进出口打印</button>
                                            
                                            <button class="btn btn-operate" yb-download download-url="exportParam.barchExportUrl+'?billId='+item.id"
                                                    ng-disabled="!btnPermission.handoverBillJCKBachExport" translate
                                                    translate-attr-title="{{!btnPermission.handoverBillJCKBachExport?'无权限执行此操作':''}}">进出口导出</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn">{{item[itemCol.dataField]}}</span>
                                        <a ng-if="!!itemCol.clickFn" class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"> {{item[itemCol.dataField]}}</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allChecked" yb-check-name="全选"
                    yb-click="selectAll()"></div>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="{{tabFlag.name}}" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="clearfix" ng-show="stepList.curStep == 0">
                <div class="pos-a-full" style="right: 50%;top: 35px;">
                    <div class="row wrapper-y-sm">
                        <div class="search-bar wrapper-none col-xs-3">
                            <select class="form-control txt-search no-pic p-t-xs" ng-model="orderCondition.billType"
                                ng-if="!tabFlag.isThreeDayPlan"
                                ng-options="item.code as item.name for item in billTypeList"
                                ng-change="changeBillType()">
                            </select>
                            <select class="form-control txt-search no-pic p-t-xs" ng-model="orderCondition.billType"
                                ng-if="tabFlag.isThreeDayPlan"
                                ng-options="item.code as item.name for item in threeDayBillTypeList"
                                ng-change="changeBillType()">
                            </select>
                        </div>
                        <div class="search-bar wrapper-none col-xs-3 m-l-xs" style="width:26%">
                            <select ng-if="orderCondition.billType=='XGFT'&&!tabFlag.isThreeDayPlan"
                                class="form-control txt-search no-pic p-t-xs" ng-model="orderCondition.warehouseCode"
                                ng-options="item.code as item.name for item in warehouseList"
                                ng-change="changeWarehouse()">
                            </select>
                            <input type="text" class="form-control date-picker txt-search no-pic"
                                ng-model="orderCondition.planDate" datepicker-popup="{{'yyyy-MM-dd'}}"
                                ng-if="tabFlag.isThreeDayPlan" ng-click="showCreateDateEnd = !showCreateDateEnd"
                                ng-change="changePlanDate()" is-open="showCreateDateEnd" close-text="关闭"
                                modal-size="small" readonly>
                        </div>
                        <div class="search-bar wrapper-none col-xs-5 pull-right">
                            <div class="input-group pull-right clearfix">
                                <input type="text" class="form-control txt-search" translate
                                    translate-attr-placeholder="{{orderCondition.billType=='XGSC'&&!tabFlag.isThreeDayPlan?'单据号/客户名称/服务人员/服务网点/创建人':'单据号/客户名称'}}"
                                    ng-style="{width:orderCondition.billType=='XGSC'&&!tabFlag.isThreeDayPlan?'340px':'200px'}"
                                    ng-model="orderCondition.keWords">
                                <span class="input-group-addon cursor-pointer" ng-click="searchBill(1)"
                                    translate>搜索</span>
                            </div>
                        </div>
                    </div>

                    <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right"
                        style="top:50px; bottom: 50px;">
                        <div class="th-fixed">
                            <table class="table-fixed border-none" width="{{addLeftTableConfig.fixedWidth}}">
                                <thead>
                                    <tr>
                                        <th width="40" class="text-center th-check border-l-none">
                                            <div yb-check-box yb-checked="orderMarkInfo.allChecked"
                                                yb-click="orderSelectAll()"></div>
                                        </th>
                                        <th ng-repeat="itemCol in addLeftTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}"
                                            ng-click="toSort(addLeftTableConfig.tableCol, $index)"
                                            ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="addLeftTableConfig.fixedWidth"
                                                fixed-width="tbStyle.billFixedWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="th-scroll-x" ng-style="tbStyle.billFixedWidth">
                            <table class="table-fixed border-none" width="{{addLeftTableConfig.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in addLeftTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}"
                                            ng-click="toSort(addLeftTableConfig.tableCol, $index)"
                                            ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="addLeftTableConfig.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll-y" ng-show="orderDataList.length > 0">
                            <table class="table-fixed border-none" width="{{addLeftTableConfig.fixedWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in orderDataList track by $index"
                                        ng-class="{'row-selected': $index === orderMarkInfo.cueRow}"
                                        ng-click="selectRow($index)">
                                        <td width="40" class="text-center border-l-none">
                                            <div yb-check-box yb-checked="item.isChecked"
                                                yb-click="orderSelectSingle(item)"></div>
                                        </td>
                                        <td class="spill-dots"
                                            ng-repeat="itemCol in addLeftTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                            title="{{item[itemCol.dataField]}}">
                                            <span
                                                ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="orderDataList.length > 0" ng-style="tbStyle.billFixedWidth">
                            <table class="table-fixed border-none" width="{{addLeftTableConfig.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in orderDataList track by $index"
                                        ng-class="{'row-selected': $index === orderMarkInfo.cueRow}"
                                        ng-click="selectRow($index)">
                                        <td class="spill-dots"
                                            ng-repeat="itemCol in addLeftTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                            title="{{item[itemCol.dataField]}}">
                                            <span
                                                ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="orderDataList.length === 0" translate>暂时没有数据</div>
                    </div>
                    <div class="bottom-area page-bar wrapper-y-sm clearfix">
                        <div yb-check-box class="m-t-xs m-r-sm" yb-checked="orderMarkInfo.allChecked" yb-check-name="全选"
                            yb-click="orderSelectAll()"></div>
                        <div yb-page-info ng-model="orderPageInfo" yb-refresh="searchBill()"></div>
                    </div>
                </div>
                <div class="pos-a-full" style="left: 50%; padding-left: 10px;top: 35px;">
                    <div class="row wrapper-y-sm" translate>
                        <div class="p-t-form">
                            已选单据
                        </div>
                    </div>
                    <div yb-table-fixed class="table-fixed-wrap" style="top:50px; bottom: 50px; left: 10px;">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="800">
                                <thead>
                                    <tr>
                                        <th width="120" translate translate-attr-title="业务单号" class="spill-dots">业务单号
                                        </th>
                                        <th width="120" translate translate-attr-title="客户名称" class="spill-dots">客户名称
                                        </th>
                                        <th width="120" translate translate-attr-title="采购级别" class="spill-dots">采购级别
                                        </th>
                                        <th width="120" translate translate-attr-title="收货地址" class="spill-dots">收货地址
                                        </th>
                                        <th width="120" translate translate-attr-title="创建帐号" class="spill-dots">创建帐号
                                        </th>
                                        <th width="120" translate translate-attr-title="创建时间" class="spill-dots">创建时间
                                        </th>
                                        <th width="120" ng-if="orderCondition.billType=='XGSC'" translate
                                            class="spill-dots">车型</th>
                                        <th width="120" ng-if="orderCondition.billType=='XGSC'" translate
                                            class="spill-dots">车号</th>
                                        <th width="120" ng-if="orderCondition.billType=='XGSC'" translate
                                            class="spill-dots">CRM单据号</th>
                                        <th width="120" ng-if="orderCondition.billType=='XGSC'" translate
                                            class="spill-dots">服务人员</th>
                                        <th width="120" ng-if="orderCondition.billType=='XGSC'" translate
                                            class="spill-dots">服务网点</th>
                                        <th width="100" translate>操作</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="selectedList.length > 0">
                            <table class="table-fixed border-none" width="800">
                                <tbody>
                                    <tr ng-repeat="item in selectedList track by $index">
                                        <td width="120" class="spill-dots" title="{{item.deliveryNo}}">
                                            {{item.deliveryNo}}</td>
                                        <td width="120" class="spill-dots" title="{{item.purchaseOrgName}}">
                                            {{item.purchaseOrgName}}</td>
                                        <td width="120" class="spill-dots" title="{{item.purchaseLevel}}">
                                            {{item.purchaseLevel}}</td>
                                        <td width="120" class="spill-dots" title="{{item.address}}">{{item.address}}
                                        </td>
                                        <td width="120" class="spill-dots" title="{{item.createName}}">
                                            {{item.createName}}</td>
                                        <td width="120" class="spill-dots"
                                            title="{{item.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                                            {{item.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}</td>

                                        <!-- xbt -->
                                        <td width="120" class="spill-dots" title="{{item.prodType}}"
                                            ng-if="orderCondition.billType=='XGSC'">{{item.prodType}}</td>
                                        <td width="120" class="spill-dots" title="{{item.machineNumber}}"
                                            ng-if="orderCondition.billType=='XGSC'">{{item.machineNumber}}</td>
                                        <td width="120" class="spill-dots" title="{{item.crmOrder}}"
                                            ng-if="orderCondition.billType=='XGSC'">{{item.crmOrder}}</td>
                                        <td width="120" class="spill-dots" title="{{item.serviceName}}"
                                            ng-if="orderCondition.billType=='XGSC'">{{item.serviceName}}</td>
                                        <td width="120" class="spill-dots" title="{{item.serviceSite}}"
                                            ng-if="orderCondition.billType=='XGSC'">{{item.serviceSite}}</td>
                                        <td width="100"><button class="btn btn-operate" ng-click="delSelected($index)"
                                                translate>删除</button></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="selectedList.length === 0" translate>暂时没有数据
                        </div>
                    </div>
                    <div class="bottom-area page-bar wrapper-y-sm text-right clearfix">
                        <button type="button" class="btn btn-primary" ng-disabled="selectedList.length==0"
                            ng-click="nextStep()" translate>下一步
                        </button>
                    </div>
                </div>
            </div>
            <div class="clearfix" ng-show="stepList.curStep == 1">
                <form name="orderForm" class="m-t-sm form-horizontal form-up-tb clearfix">
                    <div class="form-group col-xs-3 m-b-sm" ng-if="!!detailInfo.deliveryReceiptVO.billNo">
                        <label class="col-xs-4 control-label max-w-100"><span translate>发运交接单号</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                            {{detailInfo.deliveryReceiptVO.billNo}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>客户名称</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="receiverFax" class="form-control" maxlength="20"
                                ng-click="selectDealer()" ng-model="detailInfo.deliveryReceiptVO.dealerOrgName"
                                placeholder="请选择">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>制单时间</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.deliveryReceiptVO.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>单据类型</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.deliveryReceiptVO.billType|orderType}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>工厂名称</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.deliveryReceiptVO.orgName||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>采购合同号</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="purchaseContractNo" class="form-control" maxlength="100"
                                ng-model="detailInfo.deliveryReceiptVO.purchaseContractNo">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>国家和地区</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div dealer-dictionary-selector ng-model="detailInfo.deliveryReceiptVO.country"
                                sel-key="country" sel-code="detailInfo.deliveryReceiptVO.countryName"
                                data-model="orderObj.countryName">
                                <input type="text" name="country" class="form-control light-bg"
                                    ng-model="detailInfo.deliveryReceiptVO.country" translate-attr-placeholder="请选择"
                                    readonly yb-focus>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>交货日期</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="deliveryTime" class="form-control date-picker cursor-pointer"
                                ng-model="detailInfo.deliveryReceiptVO.deliveryTime"
                                datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showDatepicker1 = !showDatepicker1"
                                is-open="showDatepicker1" close-text="关闭" readonly>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>运输方式</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div select-send-type first-level-model="detailInfo.deliveryReceiptVO.shippingMethodId"
                                second-level-model="detailInfo.deliveryReceiptVO.shippingSecondMethodId"
                                parent-type-name="detailInfo.deliveryReceiptVO.shippingMethod"
                                child-type-name="detailInfo.deliveryReceiptVO.shippingSecondMethod">
                            </div>
                            <div class="msg-block"
                                ng-show="orderForm.sendType.$dirty || (orderForm.sendType.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.sendType.$error.required && !orderForm.sendType.focused">
                                    <div class="msg-triangle"></div>
                                    <span translate>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>结算方式</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.deliveryReceiptVO.settlementDesc||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>发货日期</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="deliveryDate" class="form-control date-picker cursor-pointer"
                                ng-model="detailInfo.deliveryReceiptVO.deliveryDate"
                                datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showDatepicker = !showDatepicker"
                                is-open="showDatepicker" close-text="关闭" readonly required>
                            <div class="msg-block"
                                ng-show="orderForm.deliveryDate.$dirty || (orderForm.deliveryDate.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.deliveryDate.$error.required && !orderForm.deliveryDate.focused">
                                    <div class="msg-triangle"></div>
                                    <span translate>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>运输费用</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="carrierAmount" class="form-control"
                                ng-model="detailInfo.deliveryReceiptVO.carrierAmount" yb-number-input
                                disable-decimal="false" decimal-places="2" max="99999999.99">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>辅料费用</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="accessoriesFee" class="form-control"
                                ng-model="detailInfo.deliveryReceiptVO.accessoriesFee" yb-number-input
                                disable-decimal="false" decimal-places="2" max="99999999.99">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>物流商编号</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="expressCode" class="form-control light-bg cursor-pointer"
                                ng-model="detailInfo.deliveryReceiptVO.expressName" ng-click="selectExpressCode()"
                                readonly translate translate-attr-placeholder="请选择">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>承诺时间</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.deliveryReceiptVO.commitmentTime||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>备注</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="remark" class="form-control" maxlength="200"
                                ng-model="detailInfo.deliveryReceiptVO.remark">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCHK">
                        <label class="col-xs-4 control-label max-w-100"><span translate>验箱人</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" maxlength="200" ng-model="detailInfo.deliveryReceiptVO.checkerName">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>重量</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{totalWeight || "-"}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>参考运费</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.deliveryReceiptVO.freight || "-"}}
                        </label>
                    </div>
                </form>
                <div class="pos-a-full" style="right: 40%;padding-left: 10px;" ng-style="{'top': isJCHK ? '250px' : '350px'}">
                    <div class="row wrapper-y-sm" ng-if="detailInfo.deliveryReceiptVO.outStatus!=2">
                        <button class="btn btn-operate m-r-sm" ng-click="selectBill()" translate>选择业务单据</button>
                    </div>

                    <div yb-table-fixed class="table-fixed-wrap" style="top:35px; bottom: 60px; left: 10px;">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="800">
                                <thead>
                                    <tr>
                                        <th translate width="60">操作</th>
                                        <th translate width="100">业务单号</th>
                                        <th translate width="100">销售单号</th>
                                        <th translate width="100">采购单号</th>
                                        <th translate width="120">备注</th>
                                        <th translate width="120">出库状态</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120">
                                            车型</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120">
                                            车号</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120">
                                            CRM单据号</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120">
                                            服务人员</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120">
                                            服务网点</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll">
                            <table class="table-fixed border-none" width="800">
                                <tbody>
                                    <tr ng-repeat="item in detailInfo.billList track by $index"
                                        ng-class="{'row-selected': $index === markInfoForAdd.cueRow}"
                                        ng-click="selectRowForAdd(item,$index)">
                                        <td width="60">
                                            <button type="button" class="btn btn-operate"
                                                ng-disabled="detailInfo.deliveryReceiptVO.outStatus==2||(detailInfo.deliveryReceiptVO.outStatus==1&&item.status!=0&&item.status!=null)"
                                                ng-click="delBill($index, $event)" translate>删除</button>
                                        </td>
                                        <td class="spill-dots" title="{{item.deliveryNoteNo}}" width="100">
                                            {{item.deliveryNoteNo}}</td>
                                        <td class="spill-dots" title="{{item.saleBillNo}}" width="100">
                                            {{item.saleBillNo}}</td>
                                        <td class="spill-dots" title="{{item.purchaseBillNo}}" width="100">
                                            {{item.purchaseBillNo}}</td>
                                        <td class="spill-dots" title="{{item.remark}}" width="120">{{item.remark}}</td>
                                        <td class="spill-dots" title="{{item.status|OutboundStatus}}" width="120">
                                            {{item.status|OutboundStatus}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.prodType}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="120">
                                            {{item.threeGuaServiceVO.prodType}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.machineNumber}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="120">
                                            {{item.threeGuaServiceVO.machineNumber}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.crmOrder}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="120">
                                            {{item.threeGuaServiceVO.crmOrder}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.serviceName}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="120">
                                            {{item.threeGuaServiceVO.serviceName}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.serviceSite}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="120">
                                            {{item.threeGuaServiceVO.serviceSite}}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="pos-a-full" style="left: 60%;padding-left: 10px;" ng-style="{'top': isJCHK ? '250px' : '350px'}">
                    <div class="row wrapper-y-sm" translate>
                        <div class="p-t-form">
                            零件信息
                        </div>
                    </div>

                    <div yb-table-fixed class="table-fixed-wrap" style="top:35px; bottom: 60px; left: 10px;">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="500">
                                <thead>
                                    <tr>
                                        <th width="190" translate>零件号</th>
                                        <th width="200" translate>零件中文名</th>
                                        <th width="100" translate>数量</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll">
                            <table class="table-fixed border-none" width="500">
                                <tbody>
                                    <tr ng-repeat="item in materialsForAdd track by $index">
                                        <td width="190" class="spill-dots" title="{{ item.materialNoC }}">{{
                                            item.materialNoC }}</td>
                                        <td width="200" class="spill-dots" title="{{ item.materialDesC }}">{{
                                            item.materialDesC }}</td>
                                        <td width="100" class="spill-dots" title="{{ item.qtyC }}">{{ item.qtyC }}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="materialsForAdd.length === 0" translate>
                            暂时没有数据</div>
                    </div>
                </div>
                <div class="bottom-area btn-bar text-center border-t clearfix">
                    <button type="button" class="btn btn-default m-r-sm" ng-click="stepList.curStep = 0"
                        ng-if="!detailInfo.deliveryReceiptVO.billNo" translate>上一步
                    </button>
                    <button type="button" class="btn btn-primary m-r-sm" ng-disabled="clickValue"
                        ng-click="saveData(orderForm.$valid)" translate>保存</button>
                    <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
                </div>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[2]" ng-if="activeFlag[2]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运交接单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.billNo || '-'}}">
                        {{detailInfo.deliveryReceiptVO.billNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>采购合同号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.purchaseContractNo || '-'}}">
                        {{detailInfo.deliveryReceiptVO.purchaseContractNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>客户名称</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.dealerOrgName || '-'}}">
                        {{detailInfo.deliveryReceiptVO.dealerOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.createName || '-'}}">
                        {{detailInfo.deliveryReceiptVO.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(detailInfo.deliveryReceiptVO.createDate|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(detailInfo.deliveryReceiptVO.createDate|YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>交货日期</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(detailInfo.deliveryReceiptVO.deliveryTime|YbDate:'yyyy-MM-dd') || '-'}}">
                        {{(detailInfo.deliveryReceiptVO.deliveryTime|YbDate:'yyyy-MM-dd') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>国家和地区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.country || '-'}}">
                        {{detailInfo.deliveryReceiptVO.country || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>单据类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.billType|orderType}}">
                        {{detailInfo.deliveryReceiptVO.billType|orderType}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>工厂名称</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.orgName || '-'}}">
                        {{detailInfo.deliveryReceiptVO.orgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>运输方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.shippingMethod || '-'}}">
                        {{detailInfo.deliveryReceiptVO.shippingMethod || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>结算方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.settlementDesc || '-'}}">
                        {{detailInfo.deliveryReceiptVO.settlementDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.receiverName || '-'}}">
                        {{detailInfo.deliveryReceiptVO.receiverName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.receiverTel || '-'}}">
                        {{detailInfo.deliveryReceiptVO.receiverTel || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>传真</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.receiverFax || '-'}}">
                        {{detailInfo.deliveryReceiptVO.receiverFax || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.receiverAddress || '-'}}">
                        {{detailInfo.deliveryReceiptVO.receiverAddress || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>地址编码</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.addressCode || '-'}}">
                        {{detailInfo.deliveryReceiptVO.addressCode || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <lable class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货站点</span>：</lable>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.receiverSite || '-'}}">
                        {{detailInfo.deliveryReceiptVO.receiverSite || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发货日期</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(detailInfo.deliveryReceiptVO.deliveryDate|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(detailInfo.deliveryReceiptVO.deliveryDate|YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>运输费用</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.carrierAmount || '-'}}">
                        {{detailInfo.deliveryReceiptVO.carrierAmount || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>辅料费用</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.accessoriesFee || '-'}}">
                        {{detailInfo.deliveryReceiptVO.accessoriesFee || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>承运商</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.carrierOrgName || '-'}}">
                        {{detailInfo.deliveryReceiptVO.carrierOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>承运人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.carrierUserName || '-'}}">
                        {{detailInfo.deliveryReceiptVO.carrierUserName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>重量</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.totalWeight || '-'}}">
                        {{detailInfo.deliveryReceiptVO.totalWeight || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>参考运费</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.freight || '-'}}">
                        {{detailInfo.deliveryReceiptVO.freight || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>运输车辆</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.carrierCar || '-'}}">
                        {{detailInfo.deliveryReceiptVO.carrierCar || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>物流单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.freightNo || '-'}}">
                        {{detailInfo.deliveryReceiptVO.freightNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.remark || '-'}}">
                        {{detailInfo.deliveryReceiptVO.remark || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isJCHK">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>验箱人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.checkerName || '-'}}">
                        {{detailInfo.deliveryReceiptVO.checkerName || "-"}}
                    </div>
                </div>
            </div>
            <div tabset type="sub-tab">
                <div tab heading="关联单据" active="subTabFlag[0]">
                    <div class="main-area d-b-60" ng-style="{top:isEN?'340px':'280px'}">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="100%">
                                    <thead>
                                        <tr>
                                            <th translate>业务单号</th>
                                            <th translate>销售单号</th>
                                            <th translate>销售人员</th>
                                            <th translate>采购单号</th>
                                            <th translate>源运单号</th>
                                            <th translate>备注</th>
                                            <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate>车型</th>
                                            <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate>车号</th>
                                            <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate>CRM单据号
                                            </th>
                                            <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate>服务人员
                                            </th>
                                            <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate>服务网点
                                            </th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll">
                                <table class="table-fixed border-none" width="100%">
                                    <tbody>
                                        <tr ng-repeat="item in detailInfo.billList track by $index">
                                            <td class="spill-dots" title="{{item.deliveryNoteNo}}">{{item.deliveryNoteNo}}</td>
                                            <td class="spill-dots" title="{{item.saleBillNo}}">{{item.saleBillNo}}</td>
                                            <td class="spill-dots" title="{{item.saleName}}">{{item.saleName}}</td>
                                            <td class="spill-dots" title="{{item.purchaseBillNo}}">{{item.purchaseBillNo}}</td>
                                            <td class="spill-dots" title="{{item.sourceDeliveryNo}}">{{item.sourceDeliveryNo}}</td>
                                            <td class="spill-dots" title="{{item.remark}}">{{item.remark}}</td>
                                            <td class="spill-dots" title="{{item.threeGuaServiceVO.prodType}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.threeGuaServiceVO.prodType}}</td>
                                            <td class="spill-dots" title="{{item.threeGuaServiceVO.machineNumber}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.threeGuaServiceVO.machineNumber}}</td>
                                            <td class="spill-dots" title="{{item.threeGuaServiceVO.crmOrder}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.threeGuaServiceVO.crmOrder}}</td>
                                            <td class="spill-dots" title="{{item.threeGuaServiceVO.serviceName}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.threeGuaServiceVO.serviceName}}</td>
                                            <td class="spill-dots" title="{{item.threeGuaServiceVO.serviceSite}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.threeGuaServiceVO.serviceSite}}</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div tab heading="零件信息" active="subTabFlag[1]">
                    <div class="main-area d-b-60" ng-style="{top:isEN?'340px':'280px'}">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="100%">
                                    <thead>
                                        <tr>
                                            <th translate>装箱清单号</th>
                                            <th translate>业务单号</th>
                                            <th translate>条码</th>
                                            <th translate>零件编号</th>
                                            <th translate>零件中文名</th>
                                            <th translate>数量</th>
                                            <th translate>单价</th>
                                            <th translate>小计</th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll">
                                <table class="table-fixed border-none" width="100%">
                                    <tbody>
                                        <tr ng-repeat="item in detailInfo.materialsList track by $index">
                                            <td class="spill-dots" title="{{item.boxupNo}}">{{item.boxupNo}}</td>
                                            <td class="spill-dots" title="{{item.deliveryNoteNo}}">
                                                {{item.deliveryNoteNo}}</td>
                                            <td class="spill-dots" title="{{item.barcode}}">{{item.barcode}}</td>
                                            <td class="spill-dots" title="{{item.materialsNo}}">{{item.materialsNo}}
                                            </td>
                                            <td class="spill-dots" title="{{item.materialsDes}}">{{item.materialsDes}}
                                            </td>
                                            <td class="spill-dots" title="{{item.qty}}">{{item.qty}}</td>
                                            <td class="spill-dots" title="{{item.unitPriceAfterAdjust}}">
                                                {{item.unitPriceAfterAdjust}}</td>
                                            <td class="spill-dots" title="{{item.totalPriceAfterAdjust}}">
                                                {{item.totalPriceAfterAdjust}}</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div tab heading="装箱清单" active="subTabFlag[2]">
                    <div class="main-area d-b-60" ng-style="{top:isEN?'340px':'280px'}">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="100%">
                                    <thead>
                                        <tr>
                                            <th translate>自定义编号</th>
                                            <th translate style="width: 12%;">装箱单号</th>
                                            <th translate>箱形描述</th>
                                            <th translate>创建人</th>
                                            <th translate>创建时间</th>
                                            <th translate>长/宽/高(mm)</th>
                                            <th translate>毛重/净重(kg)</th>
                                            <th translate>成本费用</th>
                                            <th translate>暂存储位</th>
                                            <th translate>物流状态</th>
                                            <th translate style="width: 12%;">操作</th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll">
                                <table class="table-fixed border-none" width="100%">
                                    <tbody>
                                        <tr ng-repeat="item in detailInfo.mainVOList track by $index">
                                            <td class="spill-dots" title="{{item.boxCode}}">{{item.boxCode}}</td>
                                            <td class="spill-dots" style="width: 12%;" title="{{item.boxupNo}}">{{item.boxupNo}}</td>
                                            <td class="spill-dots" title="{{item.packDesc}}">{{item.packDesc}}</td>
                                            <td class="spill-dots" title="{{item.createName}}">{{item.createName}}</td>
                                            <td class="spill-dots"
                                                title="{{item.createTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                                                {{item.createTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}</td>
                                            <td class="spill-dots"
                                                title="{{item.lenghtNum}}/{{item.withNum}}/{{item.hightNum}}">
                                                {{item.lenghtNum}}/{{item.withNum}}/{{item.hightNum}}</td>
                                            <td class="spill-dots" title="{{item.roughWeight}}/{{item.weight}}">
                                                {{item.roughWeight}}/{{item.weight}}</td>
                                            <td class="spill-dots" title="{{item.cost}}">{{item.cost}}</td>
                                            <td class="spill-dots" title="{{item.tempLocationCode}}">{{item.tempLocationCode}}</td>
                                            <td class="spill-dots" title="{{item.deliveryStatus|ProgressStatus:'deliveryStatus'}}">{{item.deliveryStatus|ProgressStatus:'deliveryStatus'}}</td>
                                            <td style="width: 12%;">
                                                <button class="btn btn-operate" yb-download
                                                    download-url="exportParam.exportUrl" download-param="item"
                                                    translate>导出</button>
                                                <button class="btn btn-operate" yb-download
                                                    download-url="exportParam.exportUrl4Jck" download-param="item" is-ajax="true"
                                                    translate>进出口导出</button>
                                                <button class="btn btn-operate"
                                                    ng-disabled="detailInfo.deliveryReceiptVO.deliveryStatus!='0'"
                                                    ng-click="editBox(item)" translate>编辑</button>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div tab heading="物流信息" active="subTabFlag[3]">
                    <div class="main-area d-b-60" ng-style="{top:isEN?'340px':'280px'}">
                        <div class="main-wrap p-l-xl clearfix">
                            <div class="row wrapper-y-xs">
                                <div class="col-xs-12 operate-bar font-0">
                                    <button class="btn btn-operate" ng-click="syncData()" translate>同步</button>
                                </div>
                            </div>
                            <div yb-time-line ng-model="detailInfo.logisticsVOList" can-enter="false"></div>
                        </div>
                    </div>
                </div>
                <div tab heading="关联单据详情" ng-click="initDetail()" active="subTabFlag[4]">
                    <div class="main-area d-b-60" ng-style="{top:isEN?'340px':'280px'}">
                        <div class="row wrapper-y-xs">
                            <div class="col-xs-12 operate-bar font-0">
                                <button class="btn btn-operate m-r-sm" yb-download
                                    download-url="exportBillDetailParam.url"
                                    download-param="exportBillDetailParam.param" translate>导出</button>
                            </div>
                        </div>
                        <div yb-table-fixed class="table-fixed-wrap" style="top:40px;">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="100%">
                                    <thead>
                                        <tr>
                                            <th translate width="60"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">操作</th>

                                            <th translate>零件号</th>
                                            <th translate>零件中文名</th>
                                            <th translate>适用机型</th>
                                            <th translate width="70"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">数量</th>
                                            <th translate width="70"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">库存</th>
                                            <th translate width="80"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">是否缺货</th>
                                            <th translate width="80"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">是否返厂</th>

                                            <th translate>单据号</th>

                                            <th translate ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">预计到货时间
                                            </th>
                                            <th translate ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">备注</th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll">
                                <table class="table-fixed border-none" width="100%">
                                    <tbody>
                                        <tr ng-repeat="item in billDetailDataList track by $index">
                                            <td width="60" ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                <button type="button" class="btn btn-operate"
                                                    ng-disabled="!btnPermission.handoverSaveDetailDataJck"
                                                    ng-click="saveDetailData(item)">保存</button>
                                            </td>
                                            <td class="spill-dots" title="{{item.materialsNo}}">{{item.materialsNo}}
                                            </td>
                                            <td ng-class="{'spill-dots': !!isPC}" title="{{item.materialsDes}}">
                                                {{item.materialsDes}}</td>
                                            <td ng-class="spill-dots" title="{{item.machineModel}}">
                                                {{item.machineModel}}</td>
                                            <td class="spill-dots" width="70" title="{{item.deliveryQty}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.deliveryQty}}</td>
                                            <td class="spill-dots" width="70" title="{{item.enableNum}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">{{item.enableNum}}
                                            </td>
                                            <td class="spill-dots" width="80" title="{{item.outOfStockShow}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.outOfStockShow}}</td>
                                            <td class="spill-dots" width="80" title="{{item.backFactory}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.backFactory}}</td>

                                            <td class="spill-dots" title="{{item.billNo}}">{{item.billNo}}</td>

                                            <td ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                <input type="text" class="form-control date-picker"
                                                    ng-model="item.arrivalTime" datepicker-popup="{{'yyyy-MM-dd'}}"
                                                    ng-click="showDateStart = !showDateStart" is-open="showDateStart"
                                                    close-text="关闭" modal-size="small">
                                            </td>
                                            <td ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                <textarea ng-model="item.remark" maxlength="50"
                                                    class="form-control over-flow-h"></textarea>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="bottom-area page-bar wrapper-y-sm clearfix" style="z-index:1;left:auto;">
                        <div yb-page-info ng-model="detailPageInfo" yb-refresh="searchDetail()"></div>
                    </div>
                </div>
                <div tab heading="签收信息" active="subTabFlag[5]">
                    <div class="main-area d-b-60" ng-style="{top:isEN?'340px':'280px'}">
                        <div class="form-group col-xs-3 m-b-sm" style="width: 100%;">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>签收信息</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots"
                                title="{{detailInfo.deliveryReceiptVO.receiveMessage || '-'}}">
                                {{detailInfo.deliveryReceiptVO.receiveMessage || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm" style="width: 100%;">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>是否异常</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots"
                                title="{{detailInfo.deliveryReceiptVO.isAbnormal || '-'}}">
                                {{detailInfo.deliveryReceiptVO.isAbnormal===1?'是':'否'}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm" ng-if="!!detailInfo.deliveryReceiptVO.attachName">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>附件</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots  btn-operate cursor-pointer"
                                ng-click="downloadAttach(detailInfo.deliveryReceiptVO.id)">
                                {{detailInfo.deliveryReceiptVO.attachName || "-"}}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center border-t clearfix">
                <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
            </div>
        </div>
        <div tab heading="新增入库单" active="activeFlag[3]" ng-if="activeFlag[3]">
            <form name="form" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>领入仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear name="warehouseCode" ng-model="abnormalObj.headerInfo.warehouseCode"
                            select-obj="selectWarehouse()" clear-form="clearWarehouse()" tips-name="领入仓库"
                            form-require="true"></div>

                        <div class="msg-block" ng-if="!abnormalObj.headerInfo.warehouseCode && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span translate>请选择领入仓库</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100 spill-dots"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="reason" class="form-control light-bg"
                            ng-model="abnormalObj.headerInfo.note" maxlength="150">
                    </div>
                </div>
            </form>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()" translate>批量删除</button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" selected-list="abnormalObj.detailList"
               ></div>
            <div class="main-area d-b-60" style="top:140px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{abnormalInNewTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(abnormalObj.detailList, 'Material')"></div>
                                    </th>
                                    <th width="80" translate>
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in abnormalInNewTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="abnormalInNewTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="abnormalObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{abnormalInNewTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in abnormalObj.detailList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, abnormalObj.detailList, 'Material')"></div>
                                    </td>
                                    <td width="80">
                                        <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index, $event)" translate>删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in abnormalInNewTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">

                                        <div class="spill-dots" ng-if="!itemCol.input">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'txt'"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-change="checkStock(item)" yb-number-input max="99999.999"
                                                maxlength="9" disable-decimal="false" decimal-places="3"
                                                ng-class="{'error': !!item.qtyErr}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>{{item.qtyErrMsg}}</div>
                                            </div>
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'note'"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                maxlength="120">
                                        </div>

                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="abnormalObj.detailList.length === 0" translate>
                        暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveAbnormalInData(form.$valid)"
                    translate>提交</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="changeTab(0)" translate>取消</button>
            </div>
        </div>
        <div tab heading="收货" active="activeFlag[4]" ng-if="activeFlag[4]">
            <form name="form" class="form-horizontal wrapper-md clearfix" novalidate>
                <div class="form-group m-b-sm">
                    <label class="col-xs-2 control-label"><span translate>是否异常</span>：</label>
                    <label class="col-xs-5 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                            ng-model="detailInfo.deliveryReceiptVO.isAbnormal" value="1" yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                            ng-model="detailInfo.deliveryReceiptVO.isAbnormal" value="0" yb-radio-name="否">
                    </label>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label"><span translate>备注</span>：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" name="title" class="form-control light-bg"
                            ng-model="detailInfo.deliveryReceiptVO.remark" required yb-focus maxlength="20">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label"><span translate>添加附件</span>：</label>
                    <div class="col-xs-5 wrapper-none">
                        <div>
                            <ul class="enclosureList">
                                <li ng-repeat="item in detailInfo.basicAttachmentList">
                                    <p class="one-row"><span translate>文件名</span>:</p>
                                    <p class="two-row">{{item.name}}</p>

                                    <div>
                                        <button class="btn btn-link btn-xs" ng-click="delEnclosure($index)">
                                            <i class="glyphicon glyphicon-trash"></i>
                                        </button>
                                    </div>
                                </li>
                                <li class="addEnclosure" ng-if="detailInfo.basicAttachmentList.length<1">
                                    <a ngf-select="uploadDoc($file,0)">
                                        <i class="glyphicon glyphicon-plus"></i>
                                        <br>
                                        <span translate>添加附件</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>

                </div>

                <div class="form-group">
                    <div class="col-xs-offset-2">
                        <button type="button" class="btn btn-primary m-r-sm"
                            ng-click="deliveryConfirm(form.$valid,form)" translate>保存</button>
                        <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
                    </div>
                </div>
            </form>

        </div>
        <div tab heading="自动新增" active="activeFlag[5]" ng-if="activeFlag[5]">
            <form name="autoAddForm" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>发运交接单</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="autoAddObj.billNo" select-obj="selectBillNo4Auto()"
                                clear-form="clearBillNo4Auto()" tips-name="发运交接单" title="autoAddObj.billNo" form-require="true"></div>

                        <div class="msg-block" ng-if="!autoAddObj.billNo && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择发运交接单
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>销售订单</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="autoAddObj.saleNo" select-obj="selectSaleNo4Auto()"
                            clear-form="clearSaleNo4Auto()" tips-name="销售订单" title="autoAddObj.saleNo"></div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>进出口运单</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="autoAddObj.jckBillNo" select-obj="selectJckBillNo4Auto()"
                            clear-form="clearJckBillNo4Auto()" tips-name="进出口运单" title="autoAddObj.jckBillNo"></div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="autoAddObj.warehouseCode" select-obj="selectWarehouse4Auto()"
                             clear-form="clearWarehouse4Auto()" tips-name="仓库" title="autoAddObj.warehouseCode" form-require="true"></div>

                        <div class="msg-block" ng-if="!autoAddObj.warehouseCode && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择仓库
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>储位</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="autoAddObj.locationCode" select-obj="selDepot4Auto()"
                                clear-form="clearDepot4Auto()" tips-name="储位" title="autoAddObj.locationCode" form-require="true"></div>
                        <div class="msg-block" ng-if="!autoAddObj.locationCode && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择储位
                            </div>
                        </div>
                    </div>
                </div>

                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"></label>
                    <label class="col-xs-8 control-label p-l-n text-left"></label>
                </div>

                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i ng-if="needSelCustomer">*</i><span translate>客户</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left" ng-if="!needSelCustomer">
                        {{autoAddObj.dealerOrgName}}
                    </label>
                    <div class="col-xs-8 wrapper-none" ng-if="needSelCustomer">
                        <input type="text" class="form-control light-bg" required
                            ng-model="autoAddObj.dealerOrgName" ng-click="selectDealer()"
                            readonly placeholder="请选择">
                        <div class="msg-block" ng-if="!autoAddObj.dealerOrgName && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择客户
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>国家和地区</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left">
                        {{autoAddObj.country}}
                    </label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i ng-if="needSelCustomer">*</i><span translate>业务员</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left" ng-if="!needSelCustomer">
                        {{autoAddObj.createName}}
                    </label>
                    <div class="col-xs-8 wrapper-none" ng-if="needSelCustomer">
                        <input type="text" class="form-control light-bg" required
                            ng-model="autoAddObj.createName" ng-click="selectCreator()"
                            readonly placeholder="请选择">
                        <div class="msg-block" ng-if="!autoAddObj.createName && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择业务员
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>运输方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <select class="form-control" ng-model="shippingMethodObj" required
                            ng-options="item as item.name for item in sendMethodList"
                            ng-change="sendMethodChange(shippingMethodObj)">
                            <option value="" translate>请选择运输方式</option>
                        </select>

                        <div class="msg-block" ng-if="!autoAddObj.shippingMethodId && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择运输方式
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>辅料费用(元)</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" class="form-control" ng-model="autoAddObj.accessoriesFee" required
                            yb-number-input max="99999999.99" disable-decimal="false" decimal-places="2">

                        <div class="msg-block" ng-if="!autoAddObj.accessoriesFee && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请输入辅料费用
                            </div>
                        </div>
                    </div>
                </div>
            </form>
            <div class="clearfix">
                <div class="pos-a-full" style="right: 66.6%;padding-left: 10px;top: 225px;">
                    <div class="row wrapper-y-sm" translate>
                        <div class="p-t-form">
                            发运交接单详情
                        </div>
                    </div>

                    <div yb-table-fixed class="table-fixed-wrap" style="top:35px; bottom: 60px; left: 10px;">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="400">
                                <thead>
                                    <tr>
                                        <th translate width="60">序号</th>
                                        <th translate width="100">零件号</th>
                                        <th translate width="160">零件中文名</th>
                                        <th translate width="80">数量</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll">
                            <table class="table-fixed border-none" width="400">
                                <tbody>
                                    <tr ng-repeat="item in billMaterialList track by $index">
                                        <td class="spill-dots" title="{{$index + 1}}" width="60">{{$index + 1}}</td>
                                        <td class="spill-dots" title="{{item.materialsNo}}" width="100">{{item.materialsNo}}</td>
                                        <td class="spill-dots" title="{{item.materialsDes}}" width="160">{{item.materialsDes}}</td>
                                        <td class="spill-dots" title="{{item.qty}}" width="80">{{item.qty}}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="billMaterialList.length === 0" translate>暂时没有数据</div>
                    </div>
                </div>
                <div class="pos-a-full" style="left: 33.3%;right: 33.3%;padding-left: 10px;top: 225px;">
                    <div class="row wrapper-y-sm" translate>
                        <div class="p-t-form">
                            销售订单详情
                        </div>
                    </div>

                    <div yb-table-fixed class="table-fixed-wrap" style="top:35px; bottom: 60px; left: 10px;">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="400">
                                <thead>
                                    <tr>
                                        <th translate width="60">序号</th>
                                        <th translate width="100">零件号</th>
                                        <th translate width="160">零件中文名</th>
                                        <th translate width="80">数量</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll">
                            <table class="table-fixed border-none" width="400">
                                <tbody>
                                    <tr ng-repeat="item in saleOrderMaterialList track by $index">
                                        <td class="spill-dots" title="{{$index + 1}}" width="60">{{$index + 1}}</td>
                                        <td class="spill-dots" title="{{item.materialsNo}}" width="100">{{item.materialsNo}}</td>
                                        <td class="spill-dots" title="{{item.materialsDes}}" width="160">{{item.materialsDes}}</td>
                                        <td class="spill-dots" title="{{item.qty}}" width="80">{{item.amountAfterAdjust}}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="saleOrderMaterialList.length === 0" translate>暂时没有数据</div>
                    </div>
                </div>
                <div class="pos-a-full" style="left: 66.6%;padding-left: 10px;top: 225px;">
                    <div class="row wrapper-y-sm" translate>
                        <div class="p-t-form">
                            进出口运单详情
                        </div>
                    </div>

                    <div yb-table-fixed class="table-fixed-wrap" style="top:35px; bottom: 60px; left: 10px;">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="400">
                                <thead>
                                    <tr>
                                        <th translate width="60">序号</th>
                                        <th translate width="100">零件号</th>
                                        <th translate width="160">零件中文名</th>
                                        <th translate width="80">数量</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll">
                            <table class="table-fixed border-none" width="400">
                                <tbody>
                                    <tr ng-repeat="item in jckBillMaterialList track by $index">
                                        <td class="spill-dots" title="{{$index + 1}}" width="60">{{$index + 1}}</td>
                                        <td class="spill-dots" title="{{item.materialsNo}}" width="100">{{item.materialsNo}}</td>
                                        <td class="spill-dots" title="{{item.materialsDes}}" width="160">{{item.materialsDes}}</td>
                                        <td class="spill-dots" title="{{item.qty}}" width="80">{{item.qty}}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="jckBillMaterialList.length === 0" translate>暂时没有数据</div>
                    </div>
                </div>
                <div class="bottom-area btn-bar text-center border-t clearfix">
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="saveAutoData(autoAddForm.$valid)" translate>保存</button>
                    <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
                </div>
            </div>
        </div>
    </div>
</div>
